/*
 * Copyright (c) 2017. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package com.mrd.gtimpframe.service.impl;

import com.mrd.gtimpframe.entity.GenProtocolFee;
import com.mrd.gtimpframe.repository.GenProtocolFeeMapper;
import com.mrd.gtimpframe.service.ProtocolFeeService;

import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

/**
 * Created by dengdc on 2017/8/3.
 */
@Service
public class ProtocolFeeServiceImpl implements ProtocolFeeService {
    @Resource
    private GenProtocolFeeMapper genProtocolFeeMapper;

    @Override
    public int insertSelective(GenProtocolFee record) {
        return genProtocolFeeMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(GenProtocolFee record) {
        return genProtocolFeeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<GenProtocolFee> selectByProtocolId(String protocolId) {
        return genProtocolFeeMapper.selectByProtocolId(protocolId);
    }

    @Override
    public List<GenProtocolFee> selectByProtocolIdListAndIeType(List<String> protocolIds,
                                                                String ieType) {

        return null;
    }

    @Override
    public int updateByPrimaryKey(GenProtocolFee record) {
        return genProtocolFeeMapper.updateByPrimaryKey(record);
    }
}
